package com.avantis.admin.service;

import com.avantis.common.base.BaseService;
import com.avantis.common.entity.AdminUser;
import org.springframework.data.domain.Page;

/**
* @Description:    java类作用描述
* @Author:         kirago
* @CreateDate:     2018/11/26 10:25 PM
* @UpdateRemark:   修改内容
* @Version:        1.0
*/
public interface AdminUserService{

    boolean checkByUserName(String username);

    boolean checkUserEmail(String email);

    AdminUser findByUserName(String username);

    AdminUser login(String username,String password);

    Page<AdminUser> findByPage(AdminUser adminUser, int pageNo, int length);

    void saveAdmin(AdminUser entity);

    void saveAdminRoles(Integer uid, Integer[] roles);

    void saveAdminEnable(Integer[] ids);
}
